import httpInstance from '@/utils/http'
export const addCouponAPI = (couponForm) => {
    return httpInstance.post('/coupon/add', couponForm)
}
export const getAllCouponAPI = () => {
    return httpInstance.get('/coupon/all')
}
export const getCouponAPI = () => {
    return httpInstance.get('/coupon')
}
export const deleteCouponAPI = (id) => {
    return httpInstance.delete('/coupon?id=' + id)
}
export const payCouponAPI = (id) => {
    return httpInstance.post('/coupon/pay', id, {

        headers: {
            'Content-Type': 'application/json'
        }
    })
}
export const getLimitCouponAPI = (goodsId) => {
    return httpInstance.get('/coupon/get?goodsId=' + goodsId)
}